package com.htd.erp.model;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.Size;

/**
 * @author Zhang Guilin
 *
 */
@MappedSuperclass
public abstract class NamedEntity extends AbstractEntity {

	private static final long serialVersionUID = 2449644873979601857L;
	
	@Column(length = 180)
	@Size(min=1, max = 60)
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
